<?php
/**
 * Created by PhpStorm.
 * User: zhang
 * Date: 2018/10/4
 * Time: 14:56
 */

namespace app\teacher\controller;


use think\Controller;
use think\Config;

class Demo extends Controller
{
    private $demo_path;

    public function __construct()
    {
        Config::load(APP_PATH . 'common/config.php');

        //获取默认key值
        $this->demo_path = Config::get('demo');
    }

    /**
     *
     * @api {get} /teacher/demo/student 下载新生导入表demo
     * @apiDescription 下载新生导入表demo
     * @apiGroup teacher
     *
     * @apiSuccess {String} address http://192.168.57.17:6700/computercultrue/download/excel/新生导入表demo.xlsx
     *
     */
    public function student(){
        echo $this->demo_path["student"];//"http://192.168.57.17:6700/computercultrue/download/excel/新生导入表demo.xlsx";
    }

    /**
     *
     * @api {get} /teacher/demo/score 下载成绩导入表demo
     * @apiDescription 下载成绩导入表demo
     * @apiGroup teacher
     *
     * @apiSuccess {String} address http://192.168.57.17:6700/computercultrue/download/excel/新生导入表demo.xlsx
     *
     */
    public function score(){
        echo $this->demo_path["score"];//"http://192.168.57.17:6700/computercultrue/download/excel/新生导入表demo.xlsx";
    }
}